package com.example.teaculture.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


import androidx.annotation.Nullable;

import com.example.teaculture.R;
import com.example.teaculture.activity.DataActivity;
import com.google.android.material.floatingactionbutton.FloatingActionButton;

public class ShujuFragment extends androidx.fragment.app.Fragment {
    private FloatingActionButton mfab;
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.shuju_fragment, container, false);
        mfab = (FloatingActionButton)view.findViewById(R.id.fab);
        mfab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent i=new Intent(getActivity(), DataActivity.class);
                startActivity(i);
            }
        });
        return view;
    }
}
